package com.njtoyo.taxi.admin.service.business.geo;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.njtoyo.taxi.admin.mapper.master.entity.GeoArea;
import com.njtoyo.taxi.admin.rest.presenter.business.geo.AllListPresenter;
import com.njtoyo.taxi.admin.rest.wrapper.business.area.AreaCreateWrapper;
import com.njtoyo.taxi.admin.rest.wrapper.business.area.AreaQueryWrapper;
import com.njtoyo.taxi.admin.rest.wrapper.business.area.AreaUpdateIsOpenWrapper;
import com.njtoyo.taxi.admin.rest.wrapper.business.area.AreaUpdateWrapper;
import com.taxi.entity.common.RestResult;

import java.util.List;

public interface AreaService {

    RestResult<List<AllListPresenter>> getAll();

    RestResult<IPage<GeoArea>> getList(AreaQueryWrapper wrapper);

    RestResult<Boolean> update(Long id, AreaUpdateWrapper wrapper);

    RestResult<Boolean> updateIsOpen(AreaUpdateIsOpenWrapper wrapper);

    RestResult create(AreaCreateWrapper wrapper);

    RestResult<?> refresh();
}
